import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
ElementUI.Dialog.props.closeOnClickModal.default = false;
import './icons' // icon
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import scroll from 'vue-seamless-scroll'
import Moment from 'moment'
// 赋值使用

// 主体文件引入
import '../public/static/ueditor/jquery-3.3.1.min.js'
import '../public/static/ueditor/ueditor.config.js'
import '../public/static/ueditor/ueditor.all.js'
import '../public/static/ueditor/ckeditor.min.office.js'

import companycertification from './directive/company-certification'

// 复制插件
import VueClipboard from 'vue-clipboard2'
import './permission'// 导入文件
Vue.prototype.$moment = Moment
Vue.use(VueClipboard)

NProgress.configure({ showSpinner: false }) // NProgress Configuration
Vue.prototype.$companycertification = companycertification.install // 全局可使用this.$certification调用
Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
